package com.ht.pms.core;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Controller;



@SpringBootApplication
@Controller
@EnableFeignClients(basePackages = {"com.ht.ussp.client", "com.ht.pms.core"})
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.ht.ussp.bean", "com.ht.pms.core"})
@MapperScan(basePackages = {"com.ht.pms.core.dao.mapper"})
@EnableScheduling
public class PmsCoreApplication {
    private static final Logger log = LoggerFactory.getLogger(PmsCoreApplication.class);
	public static void  main(String[] args) {
		SpringApplication.run(PmsCoreApplication.class, args);
        log.info("薪资core启动成功！");

	}
}
